package com.learn.project2.controller.admin;

import com.learn.project2.model.vo.admin.log.LogListVO;
import com.learn.project2.service.admin.log.LogService;
import com.learn.project2.utils.BaseParam;
import com.learn.project2.utils.Result;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author zhizhuke
 * @date 2022-01-08 09-04
 * @version 1.0
 */
@RestController
@RequestMapping("admin/log")
public class LogController {
    @Autowired
    LogService logService;

    @RequestMapping("list")
    @RequiresPermissions(value = {"admin:log:list"})
    public Result list(BaseParam param,String name){
        LogListVO logListVO = logService.list(param,name);
        return Result.ok(logListVO);
    }
}
